#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

#define N 3 //nums of student
#define IDLen 13 //length of ID
#define NameLen 11 //length of name
#define GenderLen 5 //lenght of gender
#define DEFAULT_STORAGE 2
#define INC_SZ 2

struct StudentInfo
{
	char id[IDLen];
	char name[NameLen];
	char gender[GenderLen];
	int age;
	int cp; //C Language
	int en; //English
	int math; //Advanced Math
	double avg; //average socre
};

typedef struct StudentInfo StudentInfo;

struct Student
{
	StudentInfo* data;
	int size;
	int capacity;
};

typedef struct Student Student;

void InitInformation(Student* p);

void AddInformation(Student* p);

void PrintInformation(Student* p);

void SaveData(Student* p);

void FreeMemory(Student* p);

int Menu();

int SelectOrder();